<template>
  <div>
    <div style="display: flex;justify-content:space-between;height: 68px">
      <div style="display: flex;position: absolute;bottom: 8px;left: 0px;">
        <div style="display: flex;align-items: center; ">
          <span class="top_text_netname">中国</span>
        </div>
        <div style="color: #78C7EC;text-align: center;padding-left: 10px;display: flex;align-items: center">
          {{para.nowDate}} {{para.nowTime}} {{para.nowWeek}}
        </div>
      </div>
      <div class="title_line" style="width: auto">

      </div>
      <div class="title_name">
        <span class="bevel_left">
          <bevel-rectangle></bevel-rectangle>
        </span>
        <span class="title_name_text">疫情态势分析平台</span>
        <span class="bevel_right">
          <bevel-rectangle></bevel-rectangle>
        </span>
      </div>
      <div class="title_line" style="position: relative;display: flex;justify-content: flex-end;align-items: center">
        <div style="color:#21F5F1;flex-basis: .5rem">
          <tooltip placement="top" content="返回">
            <Icon custom="iconfont iconfanhui" :size="18" @click.native="goBack"/>
          </tooltip>
        </div>
        <div style="color:#21F5F1;">
          <fullscreen v-model="isFullscreen" :bigScreen="true"/>
        </div>

      </div>
      <div></div>
      <div></div>
    </div>
  </div>
</template>

<script>
  import Fullscreen from '@/components/main/components/fullscreen/fullscreen'
  import bevelRectangle from './bevel-rectangle'

  export default {
    name: 'title-data',
    props: {
      para: {}
    },
    data() {
      return {
        isFullscreen: false
      }
    },
    methods: {
      goBack() {
        this.$router.go(-1)
      },
    },
    components: {
      Fullscreen,
      bevelRectangle
    }
  }
</script>

<style scoped lang="scss">
  .top_text_netname {
    color: #21F5F1;;
    font-family: PingFangSC-Regular;
    font-size: 14px;
    border: solid #21F5F1 1px;
    border-radius: 12px;
    background-image: linear-gradient(0deg, rgba(6, 120, 132, 0.8), rgba(6, 60, 73, 0.00));
    padding: 3px 13px;
  }

  .title {
    position: relative;
    width: 7.25rem;
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;

    .title-text {
      font-size: 0.3rem;
      position: absolute;
      bottom: 0;
      left: 50%;
      /*top: 2vh;*/
      transform: translate(-50%);
    }

    .title-bototm {
      position: absolute;
      bottom: -0.375rem;
      left: 50%;
      transform: translate(-50%);
    }
  }

  .title_name {
    position: relative;
    width: 1319px;
    background: url("../../../assets/images/large-screen/title_name.png") no-repeat, url("../../../assets/images/large-screen/guang_bg.png") no-repeat;
    background-position: center;

    font-family: PingFangSC-Medium;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    justify-content: space-between;
    padding-top: 30px;
  }

  .title_name_text {
    background-image: linear-gradient(#fff, #9EFFFE);
    -webkit-background-clip: text; /*必需加前缀 -webkit- 才支持这个text值 */
    -webkit-text-fill-color: transparent; /*text-fill-color会覆盖color所定义的字体颜色： */
    letter-spacing: .1rem;
  }

  .title_line {
    background: url("../../../assets/images/large-screen/title_line.png") repeat-x;
    flex-grow: 1;
  }

  .bevel_left {
    position: absolute;
    left: 184px;
    width: 160px;
    height: 22px;
    top: 8px;
    transform: skewX(30deg);
  }

  .bevel_right {
    position: absolute;
    right: 190px;
    width: 160px;
    height: 22px;
    top: 8px;
    transform: skewX(150deg);
  }
</style>
